<script setup>
import {useAttrs} from "vue";

let props = defineProps(['info']);

let attrs = useAttrs();

console.log(props);
console.log(attrs);

</script>

<template>
  <h2>这是 Child1 子组件</h2>
  <div>{{ info }}</div>
  <div>{{ attrs }}</div>
</template>

<style scoped>

</style>